
package fileby.ctrl.tabs;

import com.google.inject.Inject;
import fileby.model.ISelectionManager;
import javax.swing.JPopupMenu;

/**
 *
 * @author Jacob
 */
public class TabContentListenerFactory implements ITabContentListenerProvider {

    ISelectionManager selectionManager;

    @Inject
    public TabContentListenerFactory(ISelectionManager selectionManager) {
        this.selectionManager = selectionManager;
    }

    public TabContentListener create(JPopupMenu popup) {
        return new TabContentListener(popup, selectionManager);
    }
}
